#define _CRT_SECURE_NO_WARNINGS 1

#include "Stack.h"
#include "Sort.h"

void TestInsertSort()
{
	int a[] = { 9,8,7,6,5,4,3,2,1,0 };

	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	InsertSort(a, len);

	PrintArray(a, len);
}

void TestShellSort()
{
	int a[] = { 9,8,7,6,5,4,3,2,1,0 };

	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	ShellSort(a, len);

	PrintArray(a, len);
}

void TestMergeSortNonR()
{
	int a[] = { 9,8,7,6,5,4,3,2,1,0 };

	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	MergeSortNonR(a, len);

	PrintArray(a, len);
}

void TestCountSort()
{
	int a[] = { 1,3,2,2,1,0 };

	int len = sizeof(a) / sizeof(a[0]);

	PrintArray(a, len);

	CountSort(a, len);

	PrintArray(a, len);
}

int main()
{
	TestCountSort();

	return 0;
}